How can I extract the last digit of a number in Python

welcome to shbcf.ru